package com.designPattern.DecoratorMode;

/**
 * Created by Administrator on 2018/3/10.
 */

public class Cloth {

}

class T_Shirt extends ClothingDecorator {

    public T_Shirt(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " T恤";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}

class Jacket extends ClothingDecorator {

    public Jacket(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 牛仔夹克";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}

class WoolenOvercoat extends ClothingDecorator {

    public WoolenOvercoat(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 毛呢大衣";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}